package com.briup.sms.dao;

import com.briup.sms.entity.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BannerMapper {

  List<Banner> findBanners(String title,Boolean active);

  void  insertBanner(Banner banner);

  void updateBanner( Banner banner);

  Banner findById(Integer id);

}